<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>book_index</title>
</head>
<body>
<h1>书籍列表界面</h1>
<a href="{% url 'book:book_add' %}">添加书籍</a>
<br>
{% for book in books %}
    {{ book.name }} <a href="{% url 'book:book_detail' book.id %}">详情</a>
    <br>
{% endfor %}

</body>
</html>